package io.demo.message.util;

import io.demo.message.domain.Area;
import java.math.BigDecimal;
import java.util.function.Supplier;
import org.apache.commons.lang3.RandomUtils;

class RandomAreaSupplier implements Supplier<Area> {

  @Override
  public Area get() {
    return Area.builder()
        .municipality(BigDecimal.valueOf(RandomUtils.nextDouble()))
        .urban(BigDecimal.valueOf(RandomUtils.nextDouble()))
        .water(BigDecimal.valueOf(RandomUtils.nextDouble()))
        .build();
  }
}
